package com.xuecheng.manage_media;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"com.xuecheng.api"})//扫描接口
@ComponentScan(basePackages = {"com.xuecheng.manage_media"})
@ComponentScan(basePackages = {"com.xuecheng.framework"})//扫描common下的所有类
@EnableDiscoveryClient // 开启服务注册
@EnableFeignClients // 开启Feign功能
public class ManageMediaApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManageMediaApplication.class);
    }
}

